package com.milo.springboot.test;

public class Temp {

    public Interface getLambda() {
        //匿名函數
        Interface i = new Interface() {
            @Override
            public void onStartup() {
                temp1();
            }
        };
        return i;
        //return this::temp1;
    }

    public void temp1(){
        Impl t = new Impl();
        t.onStartup();
    }

}


